<?php
session_start();
if(!$_SESSION["trv3_07"]){
	header("location:../../login.php");
	exit;
}
require "../../resources/v1.php";
if( !get_magic_quotes_gpc()){
	$Acta = addslashes( trim( $_GET['val1']));
}else{
    $Acta = trim( $_GET['val1']);
}

if( $Acta){
	$conexion = server_reconnect();
	
	$query = "select `autos`,`nro` from `exp` where `nro`=".$Acta;
	
	$result = mysql_query( $query, $conexion);
	if( $mxcel = @mysql_fetch_array($result)){
	
		echo '<?xml version="1.0" encoding="UTF-8"?><input>';
		echo '<Autos2>'.$mxcel['autos'].'</Autos2><Acta2>'.$mxcel['nro'].'</Acta2><Acta3>'.$mxcel['nro'].'</Acta3>';
		echo '</input>';
		
	}else{			//		NO HAY PROBLEMAS DE MATCH
	
		echo '<?xml version="1.0" encoding="UTF-8"?><input>';
		echo '<Autos2>0</Autos2><Acta2>0</Acta2><Acta3>0</Acta3>';
		echo '</input>';
	
	}
	server_disconnect( $conexion);
}
?>